package com.jing.mall.common.exception;

public enum SysException {
    VALID_EXCEPTION(10001,"系统校验异常"),
    UNKNOW_EXCEPTION(10002,"系统未知异常"),
    SMS_CODE_EXCEPTION(10003,"验证码获取频繁"),
    PRODUCT_UP_EXCEPTION(11000,"商品上架异常"),
    USER_EXIST_EXCEPTION(10002,"用户名存在"),
    LOGINACCOUNT_PASSWORD_EXCEPTION(10004,"账号或密码错误"),
    PHONE_EXIST_EXCEPTION(10003,"手机号存在");

    private int code;
    private String msg;

    SysException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
